fix(gemini): preserve google search grounding tools#1418
Merged
Wei-Shaw merged 4 commits intoWei-Shaw:mainfrom Apr 8, 2026
Merged
fix(gemini): preserve google search grounding tools#1418Wei-Shaw merged 4 commits intoWei-Shaw:mainfrom
Wei-Shaw merged 4 commits intoWei-Shaw:mainfrom
Conversation
emuio
added a commit
to emuio/sub2api
that referenced
this pull request
Apr 8, 2026
新增 CCH 签名与计费头版本同步机制,修复多个网关兼容性和稳定性问题。 - 计费头 CCH 签名:基于 xxHash64 的可选 CCH 签名替代默认占位符,管理后台可开关 - 计费头版本同步:x-anthropic-billing-header 中的 cc_version 与 User-Agent 指纹保持一致 - Channel 服务重构:拆分长函数(Update/buildCache/Create),提取共享校验逻辑,计费验证下沉至 Service 层 - OpenAI 网关内容级会话哈希:非 Codex 客户端在无显式会话信号时,基于请求内容生成稳定路由种子 (Wei-Shaw#1421) - Go 版本升级至 1.26.2,修复 6 个标准库 CVE(crypto/x509, crypto/tls, archive/tar, html/template) - 修复非 CC 客户端 OAuth 伪装被 Anthropic 检测为第三方应用的问题(补全 claude-code beta 头 + system 数组格式) - 修复 OAuth refresh token 竞态条件导致误判 invalid_grant 并永久标记账号异常的问题 (Wei-Shaw#1382) - 修复非流式响应路径 SSE 检测仅限 OAuth 账号,导致 API Key 账号空 output 透传的问题 (Wei-Shaw#1493) - 修复 OpenAI 网关空 base64 图片载荷导致上游报错的问题 (Wei-Shaw#1417) - 修复 Gemini Google Search grounding 工具在 Claude 兼容层和 antigravity 中被错误丢弃的问题 (Wei-Shaw#1418) - 修复多处 errcheck lint 告警
gghyoo
pushed a commit
to gghyoo/sub2api-plus
that referenced
this pull request
Apr 9, 2026
新增 CCH 签名与计费头版本同步机制,修复多个网关兼容性和稳定性问题。 - 计费头 CCH 签名:基于 xxHash64 的可选 CCH 签名替代默认占位符,管理后台可开关 - 计费头版本同步:x-anthropic-billing-header 中的 cc_version 与 User-Agent 指纹保持一致 - Channel 服务重构:拆分长函数(Update/buildCache/Create),提取共享校验逻辑,计费验证下沉至 Service 层 - OpenAI 网关内容级会话哈希:非 Codex 客户端在无显式会话信号时,基于请求内容生成稳定路由种子 (Wei-Shaw#1421) - Go 版本升级至 1.26.2,修复 6 个标准库 CVE(crypto/x509, crypto/tls, archive/tar, html/template) - 修复非 CC 客户端 OAuth 伪装被 Anthropic 检测为第三方应用的问题(补全 claude-code beta 头 + system 数组格式) - 修复 OAuth refresh token 竞态条件导致误判 invalid_grant 并永久标记账号异常的问题 (Wei-Shaw#1382) - 修复非流式响应路径 SSE 检测仅限 OAuth 账号,导致 API Key 账号空 output 透传的问题 (Wei-Shaw#1493) - 修复 OpenAI 网关空 base64 图片载荷导致上游报错的问题 (Wei-Shaw#1417) - 修复 Gemini Google Search grounding 工具在 Claude 兼容层和 antigravity 中被错误丢弃的问题 (Wei-Shaw#1418) - 修复多处 errcheck lint 告警 # Conflicts: # backend/cmd/server/VERSION
liafonx
pushed a commit
to liafonx/sub2api
that referenced
this pull request
Apr 11, 2026
…search-grounding fix(gemini): preserve google search grounding tools
qyhfrank
added a commit
to qyhfrank/sub2api
that referenced
this pull request
Apr 13, 2026
新增 CCH 签名与计费头版本同步机制,修复多个网关兼容性和稳定性问题。 - 计费头 CCH 签名:基于 xxHash64 的可选 CCH 签名替代默认占位符,管理后台可开关 - 计费头版本同步:x-anthropic-billing-header 中的 cc_version 与 User-Agent 指纹保持一致 - Channel 服务重构:拆分长函数(Update/buildCache/Create),提取共享校验逻辑,计费验证下沉至 Service 层 - OpenAI 网关内容级会话哈希:非 Codex 客户端在无显式会话信号时,基于请求内容生成稳定路由种子 (Wei-Shaw#1421) - Go 版本升级至 1.26.2,修复 6 个标准库 CVE(crypto/x509, crypto/tls, archive/tar, html/template) - 修复非 CC 客户端 OAuth 伪装被 Anthropic 检测为第三方应用的问题(补全 claude-code beta 头 + system 数组格式) - 修复 OAuth refresh token 竞态条件导致误判 invalid_grant 并永久标记账号异常的问题 (Wei-Shaw#1382) - 修复非流式响应路径 SSE 检测仅限 OAuth 账号,导致 API Key 账号空 output 透传的问题 (Wei-Shaw#1493) - 修复 OpenAI 网关空 base64 图片载荷导致上游报错的问题 (Wei-Shaw#1417) - 修复 Gemini Google Search grounding 工具在 Claude 兼容层和 antigravity 中被错误丢弃的问题 (Wei-Shaw#1418) - 修复多处 errcheck lint 告警 # Conflicts: # backend/cmd/server/VERSION
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
google_searchkeyValidation
go test ./internal/pkg/antigravity -run 'TestBuildTools_|TestBuildParts_|TestTransformClaudeToGeminiWithOptions_'go test ./internal/service -run 'TestConvertClaudeToolsToGeminiTools_|TestConvertClaudeMessagesToGeminiGenerateContent_|TestEnsureGeminiFunctionCallThoughtSignatures_|TestGeminiMessagesCompatServiceForward_'go test ./...go build ./cmd/serverCloses #1161